<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<link rel="stylesheet" media="screen and (max-width: 640px)" href="resources/css/nghia-small-screen.css" />
	<link rel="stylesheet" media="screen and (min-width: 641px) and (max-width: 800px)" href="resources/css/nghia-small-screen.css" />
	<link rel="stylesheet" media="screen and (min-width: 801px) and (max-width: 1024px)" href="resources/css/nghia-medium-screen.css" />
	<link rel="stylesheet" media="screen and (min-width: 1025px)" href="resources/css/nghia-large-screen.css" />
	<link rel="stylesheet" media="screen and (device-aspect-ratio: 40/71)" href="resources/css/nghia-small-screen.css"/>
</h:head>

<f:event listener="#{duyetTTTDManagedBean.onLoad}" type="preRenderView"></f:event>

<body class="content-width">
	<div class="content-width">
		<ui:include src="headerAdmin.xhtml" />
		<h:form id="mainform">
			<h1 style="padding: 20px; text-align: center">Duyệt thông tin tuyển dụng</h1>
			<div class="datatable">
				<p:dataTable var="list"
					value="#{duyetTTTDManagedBean.congTyDataModel}" paginator="true"
					rows="10"
					paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
					rowsPerPageTemplate="5,10,20"
					selection="#{duyetTTTDManagedBean.selectedCongTy}"
					scrollable="true">
					<p:column selectionMode="multiple" style="width: 20px"></p:column>
					<p:column headerText="Tên CT" style="width: 150px">#{list.tenCT}</p:column>
					<p:column headerText="Tài khoản" style="width: 100px">#{list.tenTKCT}</p:column>
					<p:column headerText="Địa chỉ" style="width: 200px">#{list.diaChiCT}</p:column>
					<p:column headerText="SDT" style="width: 100px">#{list.sdtCT}</p:column>
					<p:column headerText="Email" style="width: 200px">#{list.emailCT}</p:column>
					<p:column headerText="Ngày lập" style="width: 200px">#{list.ngayLapTTTD}</p:column>
					<p:column headerText="Số lượng tuyển" style="width: 200px">#{list.tongSoLuongTD}</p:column>
				</p:dataTable>
			</div>
			<br></br>

			<!--  end product-table................................... -->
			<table border="0" cellpadding="0" cellspacing="0"
				style="float: left; margin-left: 810px">
				<tr>
					<td></td>
					<td style="padding-left: 190px"><h:commandButton
							class="btn btn-primary btn-move-left-duyet-tuyen-dung" value="Duyệt thông tin tuyển dụng"
							type="submit"
							style="height:30px; font-size:14px; padding-top:0px; width: 200px;"
							action="#{duyetTTTDManagedBean.duyetQuanAn}"></h:commandButton></td>

				</tr>

			</table>
		</h:form>
	</div>
</body>
</html>
